package com.it.travel.controller;

import com.it.travel.service.IndexService;
import com.it.travel.vo.Params.IndexParams;
import com.it.travel.vo.Params.PageParams;
import com.it.travel.vo.Result;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
@RequestMapping("/index")
@CrossOrigin
public class IndexController {
    @Resource
    private IndexService indexService;

    @PostMapping("")
    public Result<?> getInfo(@RequestBody IndexParams indexParams) {
        Result<?> result = indexService.getInfo(indexParams);
        return result;
    }
}
